- linked_package = linkinfo[:package]
%li
  %i.fas.fa-link
  Links to
  - if linkinfo[:remote_project]
    remote
    %i
      = linkinfo[:remote_project]
      \/
      = linked_package
  - else
    = project_or_package_link(project: linked_package.project.name, package: linked_package.name, short: true)
- if linkinfo[:error]
  %li
    %i.fas.fa-exclamation-circle.text-danger
    Link has errors:
    %i= linkinfo[:error]
- elsif linkinfo[:diff]
  %li
    %i.fas.fa-info-circle.text-info
    Has a
    = link_to('link diff', package_rdiff_path(oproject: linked_package.project.name, opackage: linked_package.name,
                                              project: project, package: package, rev: revision))
